package com.itheima.controller;

/**
 * @author 杰哥不要啦~
 * @date 2021/9/16
 */

//表现层与前端数据传输协议
public class Result {
    private Object data;
    private Boolean code;
    private String msg;

    public Result() {
    }

    public Result(Boolean code,Object data ) {
        this.data = data;
        this.code = code;
    }

    public Result(Boolean code,Object data,  String msg) {
        this.data = data;
        this.code = code;
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Boolean getCode() {
        return code;
    }

    public void setCode(Boolean code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}